//导入path库
const path = require('path');

// 路劲前面不加 /  该方法会自动补充
const pathStr = path.join('a','/b','c','d','e');
console.log(pathStr);


 const pathStr2 = path.join(__dirname, 'test.text');
 console.log(pathStr2);